//
//  UIImageView+XLNetworking.m
//  DrugProphet
//
//  Created by 左学良 on 16/7/21.
//  Copyright © 2016年 左学良. All rights reserved.
//

#import "UIImageView+XLNetworking.h"
@implementation UIImageView (XLNetworking)

- (void)zxl_setImageWithURL:(NSURL *)url{
    
    [self sd_setImageWithURL:url];
}


- (void)zxl_setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder{
 
    [self sd_setImageWithURL:url placeholderImage:placeholder];
}

- (void)zxl_setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options{
    
    [self sd_setImageWithURL:url placeholderImage:placeholder options:options];
}

- (void)zxl_setImageWithURL:(NSURL *)url completed:(SDExternalCompletionBlock)completedBlock{
    
    [self sd_setImageWithURL:url completed:completedBlock];
}

- (void)zxl_setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder completed:(SDExternalCompletionBlock)completedBlock{
    
    [self sd_setImageWithURL:url placeholderImage:placeholder completed:completedBlock];
}


- (void)zxl_setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options completed:(SDExternalCompletionBlock)completedBlock{
    
    [self sd_setImageWithURL:url placeholderImage:placeholder options:options completed:completedBlock];
}


- (void)zxl_setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options progress:(SDWebImageDownloaderProgressBlock)progressBlock completed:(SDExternalCompletionBlock)completedBlock{
   
    [self sd_setImageWithURL:url placeholderImage:placeholder options:options progress:progressBlock completed:completedBlock];
}



- (void)zxl_setImageWithPreviousCachedImageWithURL:(NSURL *)url andPlaceholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options progress:(SDWebImageDownloaderProgressBlock)progressBlock completed:(SDExternalCompletionBlock)completedBlock{
    
    [self sd_setImageWithPreviousCachedImageWithURL:url placeholderImage:placeholder options:options progress:progressBlock completed:completedBlock];
}

- (void)zxl_setAnimationImagesWithURLs:(NSArray *)arrayOfURLs {
    
    [self sd_setAnimationImagesWithURLs:arrayOfURLs];
}

- (void)zxl_cancelCurrentAnimationImagesLoad {
    
    [self sd_cancelCurrentAnimationImagesLoad];
}

@end
